export default (layer: any) => {
  const {
    positions: [startPoint, endPoint],
  } = layer;
  return {
    data: {
      horizontalAngle: 120,
      verticalAngle: 90,
      startPoint,
      endPoint,
    },
  };
};
